<?php
header("Access-Control-Allow-Origin:*");
header("Access-Control-Allow-Headers:content-type");
header("Access-Control-Request-Method:GET,POST");
$host = 'localhost';
$user = 'root';
$password = 'yx110120';
$dbName = 'apps';
$connect = mysqli_connect($host, $user, $password, $dbName);
if (mysqli_connect_error($connect)) {
    die(json_encode(array("code" => 400, "message" => "数据库连接失败")));
}
